home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 17503 < prev    next >
Mailbox/MIME Entity  |  1996-08-05  |  1.2 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Mailbox/MIME Entity (archive/mbox).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Newsgroup Content (archive/news) magic Supported
100% dexvert Mailbox/MIME Entity (archive/mbox) magic Supported
100% dexvert Internet Message Format (text/imf) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file news, ASCII text default
100% checkBytes Printable ASCII default
100% dexmagic PrintFox/Pagefox WEAK default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/950 MIME Email (1.0) default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime message/news default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 67 72 | 69 6d 73 65 6c 2e 7a 75 |Path: gr|imsel.zu|
|00000010| 72 69 63 68 2e 69 62 6d | 2e 63 6f 6d 21 75 73 65 |rich.ibm|.com!use|
|00000020| 6e 65 74 0a 46 72 6f 6d | 3a 20 4b 65 69 74 68 20 |net.From|: Keith |
|00000030| 57 68 69 74 74 69 6e 67 | 68 61 6d 20 3c 77 67 6b |Whitting|ham <wgk|
|00000040| 40 7a 75 72 69 63 68 2e | 69 62 6d 2e 63 6f 6d 3e |@zurich.|ibm.com>|
|00000050| 0a 4e 65 77 73 67 72 6f | 75 70 73 3a 20 63 6f 6d |.Newsgro|ups: com|
|00000060| 70 2e 6c 61 6e 67 2e 63 | 2b 2b 0a 53 75 62 6a 65 |p.lang.c|++.Subje|
|00000070| 63 74 3a 20 52 65 3a 20 | 50 75 72 65 20 76 69 72 |ct: Re: |Pure vir|
|00000080| 74 75 61 6c 20 64 65 73 | 74 72 75 63 74 6f 72 73 |tual des|tructors|
|00000090| 3f 0a 44 61 74 65 3a 20 | 54 75 65 2c 20 31 36 20 |?.Date: |Tue, 16 |
|000000a0| 41 70 72 20 31 39 39 36 | 20 30 39 3a 35 36 3a 33 |Apr 1996| 09:56:3|
|000000b0| 35 20 2d 30 37 30 30 0a | 4f 72 67 61 6e 69 7a 61 |5 -0700.|Organiza|
|000000c0| 74 69 6f 6e 3a 20 49 42 | 4d 20 5a 75 72 69 63 68 |tion: IB|M Zurich|
|000000d0| 20 52 65 73 65 61 72 63 | 68 20 4c 61 62 6f 72 61 | Researc|h Labora|
|000000e0| 74 6f 72 79 0a 4d 65 73 | 73 61 67 65 2d 49 44 3a |tory.Mes|sage-ID:|
|000000f0| 20 3c 33 31 37 33 44 31 | 34 33 2e 46 34 31 40 7a | <3173D1|43.F41@z|
|00000100| 75 72 69 63 68 2e 69 62 | 6d 2e 63 6f 6d 3e 0a 52 |urich.ib|m.com>.R|
|00000110| 65 66 65 72 65 6e 63 65 | 73 3a 20 3c 34 6b 75 71 |eference|s: <4kuq|
|00000120| 30 69 24 70 36 74 40 66 | 74 70 2e 65 65 2e 76 69 |0i$p6t@f|tp.ee.vi|
|00000130| 6c 6c 2e 65 64 75 3e 0a | 4e 4e 54 50 2d 50 6f 73 |ll.edu>.|NNTP-Pos|
|00000140| 74 69 6e 67 2d 48 6f 73 | 74 3a 20 70 69 6e 65 2e |ting-Hos|t: pine.|
|00000150| 7a 75 72 69 63 68 2e 69 | 62 6d 2e 63 6f 6d 0a 4d |zurich.i|bm.com.M|
|00000160| 69 6d 65 2d 56 65 72 73 | 69 6f 6e 3a 20 31 2e 30 |ime-Vers|ion: 1.0|
|00000170| 0a 43 6f 6e 74 65 6e 74 | 2d 54 79 70 65 3a 20 74 |.Content|-Type: t|
|00000180| 65 78 74 2f 70 6c 61 69 | 6e 3b 20 63 68 61 72 73 |ext/plai|n; chars|
|00000190| 65 74 3d 75 73 2d 61 73 | 63 69 69 0a 43 6f 6e 74 |et=us-as|cii.Cont|
|000001a0| 65 6e 74 2d 54 72 61 6e | 73 66 65 72 2d 45 6e 63 |ent-Tran|sfer-Enc|
|000001b0| 6f 64 69 6e 67 3a 20 37 | 62 69 74 0a 58 2d 4d 61 |oding: 7|bit.X-Ma|
|000001c0| 69 6c 65 72 3a 20 4d 6f | 7a 69 6c 6c 61 20 32 2e |iler: Mo|zilla 2.|
|000001d0| 30 31 20 28 57 69 6e 31 | 36 3b 20 49 29 0a 54 6f |01 (Win1|6; I).To|
|000001e0| 3a 20 73 68 65 72 69 64 | 61 6e 40 6d 6f 6e 65 74 |: sherid|an@monet|
|000001f0| 2e 76 69 6c 6c 2e 65 64 | 75 0a 0a 73 68 65 72 69 |.vill.ed|u..sheri|
|00000200| 64 61 6e 40 6d 6f 6e 65 | 74 2e 76 69 6c 6c 2e 65 |dan@mone|t.vill.e|
|00000210| 64 75 20 77 72 6f 74 65 | 3a 0a 3e 20 0a 3e 20 54 |du wrote|:.> .> T|
|00000220| 68 65 20 72 75 6c 65 20 | 77 69 74 68 20 64 65 73 |he rule |with des|
|00000230| 74 72 75 63 74 6f 72 73 | 20 69 73 20 74 68 61 74 |tructors| is that|
|00000240| 20 74 68 65 79 20 61 72 | 65 20 61 6c 77 61 79 73 | they ar|e always|
|00000250| 20 6f 76 65 72 72 69 64 | 64 65 6e 2c 20 72 69 67 | overrid|den, rig|
|00000260| 68 74 3f 0a 3e 20 54 68 | 61 74 27 73 20 61 20 71 |ht?.> Th|at's a q|
|00000270| 75 6f 74 65 20 66 72 6f | 6d 20 56 43 34 20 64 6f |uote fro|m VC4 do|
|00000280| 63 73 2c 20 42 54 57 2e | 20 20 57 68 65 6e 20 49 |cs, BTW.| When I|
|00000290| 20 64 6f 20 74 68 69 73 | 3a 0a 0a 49 20 74 68 69 | do this|:..I thi|
|000002a0| 6e 6b 20 74 68 65 20 65 | 61 73 69 65 73 74 20 77 |nk the e|asiest w|
|000002b0| 61 79 20 74 6f 20 74 68 | 69 6e 6b 20 61 62 6f 75 |ay to th|ink abou|
|000002c0| 74 20 69 74 20 69 73 20 | 74 68 61 74 3a 20 49 66 |t it is |that: If|
|000002d0| 20 79 6f 75 20 68 61 76 | 65 0a 61 20 63 6c 61 73 | you hav|e.a clas|
|000002e0| 73 20 68 69 65 72 61 72 | 63 68 79 2c 20 61 20 76 |s hierar|chy, a v|
|000002f0| 69 72 74 75 61 6c 20 64 | 65 73 74 72 75 63 74 6f |irtual d|estructo|
|00000300| 72 20 69 6e 20 74 68 65 | 20 62 61 73 65 20 63 6c |r in the| base cl|
|00000310| 61 73 73 20 77 69 6c 6c | 20 0a 65 6e 73 75 72 65 |ass will| .ensure|
|00000320| 20 61 6c 6c 20 6f 66 20 | 74 68 65 20 68 69 65 72 | all of |the hier|
|00000330| 61 72 63 68 79 20 63 6f | 72 72 65 63 74 6c 79 2e |archy co|rrectly.|
|00000340| 20 59 6f 75 20 63 61 6e | 20 61 76 6f 69 64 20 68 | You can| avoid h|
|00000350| 61 76 69 6e 67 20 61 20 | 0a 64 65 73 74 72 75 63 |aving a |.destruc|
|00000360| 74 6f 72 20 70 72 6f 76 | 69 64 69 6e 67 20 63 65 |tor prov|iding ce|
|00000370| 72 74 61 69 6e 20 72 75 | 6c 65 73 20 61 72 65 20 |rtain ru|les are |
|00000380| 66 6f 6c 6c 6f 77 65 64 | 20 62 61 73 69 63 61 6c |followed| basical|
|00000390| 6c 79 0a 74 68 61 74 20 | 65 69 74 68 65 72 20 74 |ly.that |either t|
|000003a0| 68 65 72 65 20 69 73 20 | 6e 6f 74 68 69 6e 67 20 |here is |nothing |
|000003b0| 74 6f 20 64 65 73 74 72 | 75 63 74 20 28 65 2e 67 |to destr|uct (e.g|
|000003c0| 2e 20 6d 65 6d 6f 72 79 | 20 74 6f 0a 64 65 61 6c |. memory| to.deal|
|000003d0| 6c 6f 63 61 74 65 29 20 | 6f 72 20 74 68 61 74 20 |locate) |or that |
|000003e0| 79 6f 75 20 6e 65 76 65 | 72 20 64 65 73 74 72 75 |you neve|r destru|
|000003f0| 63 74 20 61 6e 20 6f 62 | 6a 65 63 74 20 75 73 69 |ct an ob|ject usi|
|00000400| 6e 67 20 61 20 0a 70 6f | 69 6e 74 65 72 2f 72 65 |ng a .po|inter/re|
|00000410| 66 65 72 65 6e 63 65 20 | 74 6f 20 6f 6e 65 20 6f |ference |to one o|
|00000420| 66 20 69 74 27 73 20 70 | 61 72 65 6e 74 20 63 6c |f it's p|arent cl|
|00000430| 61 73 73 65 73 2e 0a 0a | 41 73 20 61 20 72 75 6c |asses...|As a rul|
|00000440| 65 20 6f 66 20 74 68 75 | 6d 62 2c 20 61 6c 77 61 |e of thu|mb, alwa|
|00000450| 79 73 20 70 75 74 20 61 | 20 76 69 72 74 75 61 6c |ys put a| virtual|
|00000460| 20 64 65 73 74 72 75 63 | 74 6f 72 20 69 6e 2c 20 | destruc|tor in, |
|00000470| 74 61 6b 65 20 69 74 20 | 6f 75 74 0a 69 66 20 79 |take it |out.if y|
|00000480| 6f 75 20 6e 65 65 64 20 | 74 6f 20 6f 70 74 69 6d |ou need |to optim|
|00000490| 69 73 65 2e 20 4f 70 74 | 69 6d 69 73 65 20 6f 6e |ise. Opt|imise on|
|000004a0| 6c 79 20 77 68 65 6e 20 | 79 6f 75 20 61 62 73 6f |ly when |you abso|
|000004b0| 6c 75 74 6c 65 79 20 6e | 65 65 64 20 74 6f 2e 0a |lutley n|eed to..|
|000004c0| 0a 2d 2d 20 0a 4b 65 69 | 74 68 20 57 68 69 74 74 |.-- .Kei|th Whitt|
|000004d0| 69 6e 67 68 61 6d 0a 77 | 67 6b 40 7a 75 72 69 63 |ingham.w|gk@zuric|
|000004e0| 68 2e 69 62 6d 2e 63 6f | 6d 0a |h.ibm.co|m. |
+--------+-------------------------+-------------------------+--------+--------+